import React from 'react';

function Child(props) {
    return (
        <div>
            {props.userName}
            {props.age}
            <button onClick={()=>props.changeUserName('zhaoliu')}>点击</button>
        </div>
    );
}

export default Child;